import Vue from 'vue'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import App from './App.vue'
import router from './router'

import click from './utils/click.js';
Vue.prototype.utils = click;
import util from "@/utils/util.js";
Vue.prototype.$util = util;

// import "./utils/rem.js"
import "./styles/common.css";
import "./styles/font.css";
// import "./styles/index.css"
import "amfe-flexible"
import store from '@/store/store.js';

import i18n from './i18n';
Vue.use(ElementUI, {
  i18n: (key, value) => i18n.t(key, value)
});
Vue.config.productionTip = false;

Vue.filter('imgSrc', (value) => {
  let str = process.env.VUE_APP_IMG_ROOT + value;
  return str;
});

Vue.prototype.$EventBus = new Vue();

new Vue({
  router,
  store,
  i18n,
  el: '#app',
  render: h => h(App)
}).$mount('#app');
